package com.park.enums;

import lombok.Data;


public enum ResultEnum {

    /**
     * 成功状态码
     */
    SUCCESS(200, "成功"),
    ERROR(400, "错误"),

    ;


    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
